<html xml:th = "http://www.thymeleaf.org">

<body>

<div>
    <!-- 需要填充商铺的动态数据 -->
    <div>商铺 id：<span th:text="${shop != null ? shop.id : ''}"></span></div>
    <div>商铺名称：<span th:text="${shop != null ? shop.name : ''}"></span></div>
    <div>商铺评分：<span th:text="${shop != null ? shop.score : ''}"></span></div>
    <div>商铺评论数：<span th:text="${shop != null ? shop.comments : ''}"></span></div>
    <div>商铺均价：<span th:text="${shop != null ? shop.avgPrice : ''}"></span></div>
    <div>商铺地址：<span th:text="${shop != null ? shop.address : ''}"></span></div>
    <div>商铺营业时间：<span th:text="${shop != null ? shop.openHours : ''}"></span></div>
    <div>商铺电话：<span th:text="${shop != null ? shop.phone : ''}"></span></div>
</div>

<br/>

<form method="post" action="/shop/comment" th:object="${comment}">
    <input type="text" th:field="*{content}" id="content" placeholder="在这里评价...">
    <input type="hidden" th:field="*{shopId}" id="shopId" th:value="${shopId}">
    <input type="submit" value="评价">
</form>

<br/>



</body>

</html>